package com.calenda.setevent.fragment;

import java.util.ArrayList;
 

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.calenda.setevent.R;
import com.calenda.setevent.adapter.ListViewGroupAdapter;

public class SearchGroupFragment extends BaseFragment{
	private View view;
	private ListView listView;
	private ArrayList<String> arrData;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.search_layout, null);
		return view;
	}
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		listView = (ListView)view.findViewById(R.id.listview);
		arrData = new ArrayList<String>();
		arrData.add("Nhóm 1");
		arrData.add("Nhóm 2");
		arrData.add("Nhóm 3");
		arrData.add("Nhóm 4");
		arrData.add("Nhóm 5");
		arrData.add("Nhóm 6");
		
		ListViewGroupAdapter adapter = new ListViewGroupAdapter(getActivity(), arrData);
		
		listView.setAdapter(adapter);
		
	}
}
